import axios from './axios'


// 获取配货提醒单数据
export function customerAllocation(){
  return axios({
    url:'/index/customerAllocation'
  })
}

// 获取常用操作菜单顺序
export function getMenuList(){
  return axios({
    url:'/index/getMenuList'
  })
}

// 获取销售排行榜数据  type:0客户/1厂商
export function indexInputTotal(params){
  return axios({
    url:'/index/indexInputTotal',
    params
  })
}

// 获取销售统计数据
export function indexSellTotal(params){
  return axios({
    url:'/index/indexSellTotal',
    params
  })
}

// 查询首页在调途中数据 
export function onTheWayByFiveDay(params){
  return axios({
    url:'/index/onTheWayByFiveDay',
    params
  })
}

// 销售未补数据
export function sellNotMadeUp(){
  return axios({
    url:'/index/sellNotMadeUp'
  })
}

// 菜单点击统计次数
export function menuNumberAdd(data){
  return axios({
    method: 'post',
    url:'/index/menuNumberAdd',
    data
  })
}

// 获取销售同比分析数据
export function indexSellAnalysis(){
  return axios({
    url:'/index/indexSellAnalysis'
  })
}

// 获取品类销售比
export function commodityTypeSell(){
  return axios({
    url:'/index/commodityTypeSell'
  })
}